home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / Collections.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  16.5 KB  |  522 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Collections.h
  3.  
  4.      Contains:    Collection Manager Interfaces
  5.  
  6.      Version:    Technology:    System 7.x
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __COLLECTIONS__
  18. #define __COLLECTIONS__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23. #ifndef __MIXEDMODE__
  24. #include <MixedMode.h>
  25. #endif
  26.  
  27.  
  28.  
  29. #if PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40.  
  41. #if PRAGMA_STRUCT_ALIGN
  42.     #pragma options align=mac68k
  43. #elif PRAGMA_STRUCT_PACKPUSH
  44.     #pragma pack(push, 2)
  45. #elif PRAGMA_STRUCT_PACK
  46.     #pragma pack(2)
  47. #endif
  48.  
  49. /*************/
  50. /* Constants */
  51. /*************/
  52. /* Convenience constants for functions which optionally return values */
  53.  
  54. enum {
  55.     kCollectionDontWantTag        = 0L,
  56.     kCollectionDontWantId        = 0L,
  57.     kCollectionDontWantSize        = 0L,
  58.     kCollectionDontWantAttributes = 0L,
  59.     kCollectionDontWantIndex    = 0L,
  60.     kCollectionDontWantData        = 0L
  61. };
  62.  
  63.  
  64. /* attributes bits */
  65.  
  66. enum {
  67.     kCollectionNoAttributes        = 0x00000000,                    /* no attributes bits set */
  68.     kCollectionAllAttributes    = (long)0xFFFFFFFF,                /* all attributes bits set */
  69.     kCollectionUserAttributes    = 0x0000FFFF,                    /* user attributes bits */
  70.     kCollectionDefaultAttributes = 0x40000000                    /* default attributes - unlocked, persistent */
  71. };
  72.  
  73.  
  74. /* 
  75.     Attribute bits 0 through 15 (entire low word) are reserved for use by the application.
  76.     Attribute bits 16 through 31 (entire high word) are reserved for use by the Collection Manager.
  77.     Only bits 31 (kCollectionLockBit) and 30 (kCollectionPersistenceBit) currently have meaning.
  78. */
  79.  
  80. enum {
  81.     kCollectionUser0Bit            = 0,
  82.     kCollectionUser1Bit            = 1,
  83.     kCollectionUser2Bit            = 2,
  84.     kCollectionUser3Bit            = 3,
  85.     kCollectionUser4Bit            = 4,
  86.     kCollectionUser5Bit            = 5,
  87.     kCollectionUser6Bit            = 6,
  88.     kCollectionUser7Bit            = 7,
  89.     kCollectionUser8Bit            = 8,
  90.     kCollectionUser9Bit            = 9,
  91.     kCollectionUser10Bit        = 10,
  92.     kCollectionUser11Bit        = 11,
  93.     kCollectionUser12Bit        = 12,
  94.     kCollectionUser13Bit        = 13,
  95.     kCollectionUser14Bit        = 14,
  96.     kCollectionUser15Bit        = 15,
  97.     kCollectionReserved0Bit        = 16,
  98.     kCollectionReserved1Bit        = 17,
  99.     kCollectionReserved2Bit        = 18,
  100.     kCollectionReserved3Bit        = 19,
  101.     kCollectionReserved4Bit        = 20,
  102.     kCollectionReserved5Bit        = 21,
  103.     kCollectionReserved6Bit        = 22,
  104.     kCollectionReserved7Bit        = 23,
  105.     kCollectionReserved8Bit        = 24,
  106.     kCollectionReserved9Bit        = 25,
  107.     kCollectionReserved10Bit    = 26,
  108.     kCollectionReserved11Bit    = 27,
  109.     kCollectionReserved12Bit    = 28,
  110.     kCollectionReserved13Bit    = 29,
  111.     kCollectionPersistenceBit    = 30,
  112.     kCollectionLockBit            = 31
  113. };
  114.  
  115.  
  116. /* attribute masks */
  117.  
  118. enum {
  119.     kCollectionUser0Mask        = 1L << kCollectionUser0Bit,
  120.     kCollectionUser1Mask        = 1L << kCollectionUser1Bit,
  121.     kCollectionUser2Mask        = 1L << kCollectionUser2Bit,
  122.     kCollectionUser3Mask        = 1L << kCollectionUser3Bit,
  123.     kCollectionUser4Mask        = 1L << kCollectionUser4Bit,
  124.     kCollectionUser5Mask        = 1L << kCollectionUser5Bit,
  125.     kCollectionUser6Mask        = 1L << kCollectionUser6Bit,
  126.     kCollectionUser7Mask        = 1L << kCollectionUser7Bit,
  127.     kCollectionUser8Mask        = 1L << kCollectionUser8Bit,
  128.     kCollectionUser9Mask        = 1L << kCollectionUser9Bit,
  129.     kCollectionUser10Mask        = 1L << kCollectionUser10Bit,
  130.     kCollectionUser11Mask        = 1L << kCollectionUser11Bit,
  131.     kCollectionUser12Mask        = 1L << kCollectionUser12Bit,
  132.     kCollectionUser13Mask        = 1L << kCollectionUser13Bit,
  133.     kCollectionUser14Mask        = 1L << kCollectionUser14Bit,
  134.     kCollectionUser15Mask        = 1L << kCollectionUser15Bit,
  135.     kCollectionReserved0Mask    = 1L << kCollectionReserved0Bit,
  136.     kCollectionReserved1Mask    = 1L << kCollectionReserved1Bit,
  137.     kCollectionReserved2Mask    = 1L << kCollectionReserved2Bit,
  138.     kCollectionReserved3Mask    = 1L << kCollectionReserved3Bit,
  139.     kCollectionReserved4Mask    = 1L << kCollectionReserved4Bit,
  140.     kCollectionReserved5Mask    = 1L << kCollectionReserved5Bit,
  141.     kCollectionReserved6Mask    = 1L << kCollectionReserved6Bit,
  142.     kCollectionReserved7Mask    = 1L << kCollectionReserved7Bit,
  143.     kCollectionReserved8Mask    = 1L << kCollectionReserved8Bit,
  144.     kCollectionReserved9Mask    = 1L << kCollectionReserved9Bit,
  145.     kCollectionReserved10Mask    = 1L << kCollectionReserved10Bit,
  146.     kCollectionReserved11Mask    = 1L << kCollectionReserved11Bit,
  147.     kCollectionReserved12Mask    = 1L << kCollectionReserved12Bit,
  148.     kCollectionReserved13Mask    = 1L << kCollectionReserved13Bit,
  149.     kCollectionPersistenceMask    = 1L << kCollectionPersistenceBit,
  150.     kCollectionLockMask            = 1L << kCollectionLockBit
  151. };
  152.  
  153.  
  154. /***********/
  155. /* Types   */
  156. /***********/
  157. /* abstract data type for a collection */
  158. typedef struct OpaqueCollection*         Collection;
  159. /* collection member 4 byte tag */
  160. typedef FourCharCode                     CollectionTag;
  161. typedef CALLBACK_API( OSErr , CollectionFlattenProcPtr )(SInt32 size, void *data, void *refCon);
  162. typedef CALLBACK_API( OSErr , CollectionExceptionProcPtr )(Collection c, OSErr status);
  163. typedef STACK_UPP_TYPE(CollectionFlattenProcPtr)                 CollectionFlattenUPP;
  164. typedef STACK_UPP_TYPE(CollectionExceptionProcPtr)                 CollectionExceptionUPP;
  165. enum { uppCollectionFlattenProcInfo = 0x00000FE0 };             /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  166. enum { uppCollectionExceptionProcInfo = 0x000002E0 };             /* pascal 2_bytes Func(4_bytes, 2_bytes) */
  167. #define NewCollectionFlattenProc(userRoutine)                     (CollectionFlattenUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppCollectionFlattenProcInfo, GetCurrentArchitecture())
  168. #define NewCollectionExceptionProc(userRoutine)                 (CollectionExceptionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppCollectionExceptionProcInfo, GetCurrentArchitecture())
  169. #define CallCollectionFlattenProc(userRoutine, size, data, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppCollectionFlattenProcInfo, (size), (data), (refCon))
  170. #define CallCollectionExceptionProc(userRoutine, c, status)     CALL_TWO_PARAMETER_UPP((userRoutine), uppCollectionExceptionProcInfo, (c), (status))
  171. /*********************************************/
  172. /************* Public interfaces *************/
  173. /*********************************************/
  174. EXTERN_API( Collection )
  175. NewCollection                    (void)                                                        TWOWORDINLINE(0x7000, 0xABF6);
  176.  
  177.  
  178. EXTERN_API( void )
  179. DisposeCollection                (Collection             c)                                    TWOWORDINLINE(0x7001, 0xABF6);
  180.  
  181.  
  182. EXTERN_API( Collection )
  183. CloneCollection                    (Collection             c)                                    TWOWORDINLINE(0x7002, 0xABF6);
  184.  
  185.  
  186. EXTERN_API( SInt32 )
  187. CountCollectionOwners            (Collection             c)                                    TWOWORDINLINE(0x7003, 0xABF6);
  188.  
  189.  
  190. EXTERN_API( Collection )
  191. CopyCollection                    (Collection             srcCollection,
  192.                                  Collection             dstCollection)                        TWOWORDINLINE(0x7004, 0xABF6);
  193.  
  194.  
  195. EXTERN_API( SInt32 )
  196. GetCollectionDefaultAttributes    (Collection             c)                                    TWOWORDINLINE(0x7005, 0xABF6);
  197.  
  198.  
  199. EXTERN_API( void )
  200. SetCollectionDefaultAttributes    (Collection             c,
  201.                                  SInt32                 whichAttributes,
  202.                                  SInt32                 newAttributes)                        TWOWORDINLINE(0x7006, 0xABF6);
  203.  
  204.  
  205. EXTERN_API( SInt32 )
  206. CountCollectionItems            (Collection             c)                                    TWOWORDINLINE(0x7007, 0xABF6);
  207.  
  208.  
  209. EXTERN_API( OSErr )
  210. AddCollectionItem                (Collection             c,
  211.                                  CollectionTag             tag,
  212.                                  SInt32                 id,
  213.                                  SInt32                 itemSize,
  214.                                  void *                    itemData)                            TWOWORDINLINE(0x7008, 0xABF6);
  215.  
  216.  
  217. EXTERN_API( OSErr )
  218. GetCollectionItem                (Collection             c,
  219.                                  CollectionTag             tag,
  220.                                  SInt32                 id,
  221.                                  SInt32 *                itemSize,
  222.                                  void *                    itemData)                            TWOWORDINLINE(0x7009, 0xABF6);
  223.  
  224.  
  225. EXTERN_API( OSErr )
  226. RemoveCollectionItem            (Collection             c,
  227.                                  CollectionTag             tag,
  228.                                  SInt32                 id)                                    TWOWORDINLINE(0x700A, 0xABF6);
  229.  
  230.  
  231. EXTERN_API( OSErr )
  232. SetCollectionItemInfo            (Collection             c,
  233.                                  CollectionTag             tag,
  234.                                  SInt32                 id,
  235.                                  SInt32                 whichAttributes,
  236.                                  SInt32                 newAttributes)                        TWOWORDINLINE(0x700B, 0xABF6);
  237.  
  238.  
  239. EXTERN_API( OSErr )
  240. GetCollectionItemInfo            (Collection             c,
  241.                                  CollectionTag             tag,
  242.                                  SInt32                 id,
  243.                                  SInt32 *                index,
  244.                                  SInt32 *                itemSize,
  245.                                  SInt32 *                attributes)                            TWOWORDINLINE(0x700C, 0xABF6);
  246.  
  247.  
  248. EXTERN_API( OSErr )
  249. ReplaceIndexedCollectionItem    (Collection             c,
  250.                                  SInt32                 index,
  251.                                  SInt32                 itemSize,
  252.                                  void *                    itemData)                            TWOWORDINLINE(0x700D, 0xABF6);
  253.  
  254.  
  255. EXTERN_API( OSErr )
  256. GetIndexedCollectionItem        (Collection             c,
  257.                                  SInt32                 index,
  258.                                  SInt32 *                itemSize,
  259.                                  void *                    itemData)                            TWOWORDINLINE(0x700E, 0xABF6);
  260.  
  261.  
  262. EXTERN_API( OSErr )
  263. RemoveIndexedCollectionItem        (Collection             c,
  264.                                  SInt32                 index)                                TWOWORDINLINE(0x700F, 0xABF6);
  265.  
  266.  
  267. EXTERN_API( OSErr )
  268. SetIndexedCollectionItemInfo    (Collection             c,
  269.                                  SInt32                 index,
  270.                                  SInt32                 whichAttributes,
  271.                                  SInt32                 newAttributes)                        TWOWORDINLINE(0x7010, 0xABF6);
  272.  
  273.  
  274. EXTERN_API( OSErr )
  275. GetIndexedCollectionItemInfo    (Collection             c,
  276.                                  SInt32                 index,
  277.                                  CollectionTag *        tag,
  278.                                  SInt32 *                id,
  279.                                  SInt32 *                itemSize,
  280.                                  SInt32 *                attributes)                            TWOWORDINLINE(0x7011, 0xABF6);
  281.  
  282.  
  283. EXTERN_API( Boolean )
  284. CollectionTagExists                (Collection             c,
  285.                                  CollectionTag             tag)                                TWOWORDINLINE(0x7012, 0xABF6);
  286.  
  287.  
  288. EXTERN_API( SInt32 )
  289. CountCollectionTags                (Collection             c)                                    TWOWORDINLINE(0x7013, 0xABF6);
  290.  
  291.  
  292. EXTERN_API( OSErr )
  293. GetIndexedCollectionTag            (Collection             c,
  294.                                  SInt32                 tagIndex,
  295.                                  CollectionTag *        tag)                                TWOWORDINLINE(0x7014, 0xABF6);
  296.  
  297.  
  298. EXTERN_API( SInt32 )
  299. CountTaggedCollectionItems        (Collection             c,
  300.                                  CollectionTag             tag)                                TWOWORDINLINE(0x7015, 0xABF6);
  301.  
  302.  
  303. EXTERN_API( OSErr )
  304. GetTaggedCollectionItem            (Collection             c,
  305.                                  CollectionTag             tag,
  306.                                  SInt32                 whichItem,
  307.                                  SInt32 *                itemSize,
  308.                                  void *                    itemData)                            TWOWORDINLINE(0x7016, 0xABF6);
  309.  
  310.  
  311. EXTERN_API( OSErr )
  312. GetTaggedCollectionItemInfo        (Collection             c,
  313.                                  CollectionTag             tag,
  314.                                  SInt32                 whichItem,
  315.                                  SInt32 *                id,
  316.                                  SInt32 *                index,
  317.                                  SInt32 *                itemSize,
  318.                                  SInt32 *                attributes)                            TWOWORDINLINE(0x7017, 0xABF6);
  319.  
  320.  
  321. EXTERN_API( void )
  322. PurgeCollection                    (Collection             c,
  323.                                  SInt32                 whichAttributes,
  324.                                  SInt32                 matchingAttributes)                    TWOWORDINLINE(0x7018, 0xABF6);
  325.  
  326.  
  327. EXTERN_API( void )
  328. PurgeCollectionTag                (Collection             c,
  329.                                  CollectionTag             tag)                                TWOWORDINLINE(0x7019, 0xABF6);
  330.  
  331.  
  332. EXTERN_API( void )
  333. EmptyCollection                    (Collection             c)                                    TWOWORDINLINE(0x701A, 0xABF6);
  334.  
  335. EXTERN_API( OSErr )
  336. FlattenCollection                (Collection             c,
  337.                                  CollectionFlattenUPP     flattenProc,
  338.                                  void *                    refCon)                                TWOWORDINLINE(0x701B, 0xABF6);
  339.  
  340.  
  341. EXTERN_API( OSErr )
  342. FlattenPartialCollection        (Collection             c,
  343.                                  CollectionFlattenUPP     flattenProc,
  344.                                  void *                    refCon,
  345.                                  SInt32                 whichAttributes,
  346.                                  SInt32                 matchingAttributes)                    TWOWORDINLINE(0x701C, 0xABF6);
  347.  
  348.  
  349. EXTERN_API( OSErr )
  350. UnflattenCollection                (Collection             c,
  351.                                  CollectionFlattenUPP     flattenProc,
  352.                                  void *                    refCon)                                TWOWORDINLINE(0x701D, 0xABF6);
  353.  
  354.  
  355. EXTERN_API( CollectionExceptionUPP )
  356. GetCollectionExceptionProc        (Collection             c)                                    TWOWORDINLINE(0x701E, 0xABF6);
  357.  
  358.  
  359. EXTERN_API( void )
  360. SetCollectionExceptionProc        (Collection             c,
  361.                                  CollectionExceptionUPP  exceptionProc)                        TWOWORDINLINE(0x701F, 0xABF6);
  362.  
  363.  
  364. EXTERN_API( Collection )
  365. GetNewCollection                (SInt16                 collectionID)                        TWOWORDINLINE(0x7020, 0xABF6);
  366.  
  367.  
  368. /**********************************************************************/
  369. /************** Utility routines for handle-based access **************/
  370. /**********************************************************************/
  371. EXTERN_API( OSErr )
  372. AddCollectionItemHdl            (Collection             aCollection,
  373.                                  CollectionTag             tag,
  374.                                  SInt32                 id,
  375.                                  Handle                 itemData)                            TWOWORDINLINE(0x7021, 0xABF6);
  376.  
  377.  
  378. EXTERN_API( OSErr )
  379. GetCollectionItemHdl            (Collection             aCollection,
  380.                                  CollectionTag             tag,
  381.                                  SInt32                 id,
  382.                                  Handle                 itemData)                            TWOWORDINLINE(0x7022, 0xABF6);
  383.  
  384.  
  385. EXTERN_API( OSErr )
  386. ReplaceIndexedCollectionItemHdl    (Collection             aCollection,
  387.                                  SInt32                 index,
  388.                                  Handle                 itemData)                            TWOWORDINLINE(0x7023, 0xABF6);
  389.  
  390.  
  391. EXTERN_API( OSErr )
  392. GetIndexedCollectionItemHdl        (Collection             aCollection,
  393.                                  SInt32                 index,
  394.                                  Handle                 itemData)                            TWOWORDINLINE(0x7024, 0xABF6);
  395.  
  396.  
  397. EXTERN_API( OSErr )
  398. FlattenCollectionToHdl            (Collection             aCollection,
  399.                                  Handle                 flattened)                            TWOWORDINLINE(0x7025, 0xABF6);
  400.  
  401.  
  402. EXTERN_API( OSErr )
  403. UnflattenCollectionFromHdl        (Collection             aCollection,
  404.                                  Handle                 flattened)                            TWOWORDINLINE(0x7026, 0xABF6);
  405.  
  406.  
  407. #if OLDROUTINENAMES
  408.  
  409. enum {
  410.     dontWantTag                    = kCollectionDontWantTag,
  411.     dontWantId                    = kCollectionDontWantId,
  412.     dontWantSize                = kCollectionDontWantSize,
  413.     dontWantAttributes            = kCollectionDontWantAttributes,
  414.     dontWantIndex                = kCollectionDontWantIndex,
  415.     dontWantData                = kCollectionDontWantData
  416. };
  417.  
  418.  
  419. enum {
  420.     noCollectionAttributes        = kCollectionNoAttributes,
  421.     allCollectionAttributes        = kCollectionAllAttributes,
  422.     userCollectionAttributes    = kCollectionUserAttributes,
  423.     defaultCollectionAttributes    = kCollectionDefaultAttributes
  424. };
  425.  
  426.  
  427. enum {
  428.     collectionUser0Bit            = kCollectionUser0Bit,
  429.     collectionUser1Bit            = kCollectionUser1Bit,
  430.     collectionUser2Bit            = kCollectionUser2Bit,
  431.     collectionUser3Bit            = kCollectionUser3Bit,
  432.     collectionUser4Bit            = kCollectionUser4Bit,
  433.     collectionUser5Bit            = kCollectionUser5Bit,
  434.     collectionUser6Bit            = kCollectionUser6Bit,
  435.     collectionUser7Bit            = kCollectionUser7Bit,
  436.     collectionUser8Bit            = kCollectionUser8Bit,
  437.     collectionUser9Bit            = kCollectionUser9Bit,
  438.     collectionUser10Bit            = kCollectionUser10Bit,
  439.     collectionUser11Bit            = kCollectionUser11Bit,
  440.     collectionUser12Bit            = kCollectionUser12Bit,
  441.     collectionUser13Bit            = kCollectionUser13Bit,
  442.     collectionUser14Bit            = kCollectionUser14Bit,
  443.     collectionUser15Bit            = kCollectionUser15Bit,
  444.     collectionReserved0Bit        = kCollectionReserved0Bit,
  445.     collectionReserved1Bit        = kCollectionReserved1Bit,
  446.     collectionReserved2Bit        = kCollectionReserved2Bit,
  447.     collectionReserved3Bit        = kCollectionReserved3Bit,
  448.     collectionReserved4Bit        = kCollectionReserved4Bit,
  449.     collectionReserved5Bit        = kCollectionReserved5Bit,
  450.     collectionReserved6Bit        = kCollectionReserved6Bit,
  451.     collectionReserved7Bit        = kCollectionReserved7Bit,
  452.     collectionReserved8Bit        = kCollectionReserved8Bit,
  453.     collectionReserved9Bit        = kCollectionReserved9Bit,
  454.     collectionReserved10Bit        = kCollectionReserved10Bit,
  455.     collectionReserved11Bit        = kCollectionReserved11Bit,
  456.     collectionReserved12Bit        = kCollectionReserved12Bit,
  457.     collectionReserved13Bit        = kCollectionReserved13Bit,
  458.     collectionPersistenceBit    = kCollectionPersistenceBit,
  459.     collectionLockBit            = kCollectionLockBit
  460. };
  461.  
  462.  
  463. enum {
  464.     collectionUser0Mask            = kCollectionUser0Mask,
  465.     collectionUser1Mask            = kCollectionUser1Mask,
  466.     collectionUser2Mask            = kCollectionUser2Mask,
  467.     collectionUser3Mask            = kCollectionUser3Mask,
  468.     collectionUser4Mask            = kCollectionUser4Mask,
  469.     collectionUser5Mask            = kCollectionUser5Mask,
  470.     collectionUser6Mask            = kCollectionUser6Mask,
  471.     collectionUser7Mask            = kCollectionUser7Mask,
  472.     collectionUser8Mask            = kCollectionUser8Mask,
  473.     collectionUser9Mask            = kCollectionUser9Mask,
  474.     collectionUser10Mask        = kCollectionUser10Mask,
  475.     collectionUser11Mask        = kCollectionUser11Mask,
  476.     collectionUser12Mask        = kCollectionUser12Mask,
  477.     collectionUser13Mask        = kCollectionUser13Mask,
  478.     collectionUser14Mask        = kCollectionUser14Mask,
  479.     collectionUser15Mask        = kCollectionUser15Mask,
  480.     collectionReserved0Mask        = kCollectionReserved0Mask,
  481.     collectionReserved1Mask        = kCollectionReserved1Mask,
  482.     collectionReserved2Mask        = kCollectionReserved2Mask,
  483.     collectionReserved3Mask        = kCollectionReserved3Mask,
  484.     collectionReserved4Mask        = kCollectionReserved4Mask,
  485.     collectionReserved5Mask        = kCollectionReserved5Mask,
  486.     collectionReserved6Mask        = kCollectionReserved6Mask,
  487.     collectionReserved7Mask        = kCollectionReserved7Mask,
  488.     collectionReserved8Mask        = kCollectionReserved8Mask,
  489.     collectionReserved9Mask        = kCollectionReserved9Mask,
  490.     collectionReserved10Mask    = kCollectionReserved10Mask,
  491.     collectionReserved11Mask    = kCollectionReserved11Mask,
  492.     collectionReserved12Mask    = kCollectionReserved12Mask,
  493.     collectionReserved13Mask    = kCollectionReserved13Mask,
  494.     collectionPersistenceMask    = kCollectionPersistenceMask,
  495.     collectionLockMask            = kCollectionLockMask
  496. };
  497.  
  498. #endif  /* OLDROUTINENAMES */
  499.  
  500.  
  501.  
  502. #if PRAGMA_STRUCT_ALIGN
  503.     #pragma options align=reset
  504. #elif PRAGMA_STRUCT_PACKPUSH
  505.     #pragma pack(pop)
  506. #elif PRAGMA_STRUCT_PACK
  507.     #pragma pack()
  508. #endif
  509.  
  510. #ifdef PRAGMA_IMPORT_OFF
  511. #pragma import off
  512. #elif PRAGMA_IMPORT
  513. #pragma import reset
  514. #endif
  515.  
  516. #ifdef __cplusplus
  517. }
  518. #endif
  519.  
  520. #endif /* __COLLECTIONS__ */
  521.  
  522.